.class Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;
.super Lcom/burstly/lib/network/request/SingleHostRequest;
.source "VideoCache.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "VideoFetchTask"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/lib/network/request/SingleHostRequest",
        "<",
        "Ljava/lang/Void;",
        ">;"
    }
.end annotation


# instance fields
.field private final mCacheKey:Ljava/lang/String;

.field final synthetic this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;


# direct methods
.method constructor <init>(Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .parameter
    .parameter "videoUrl"
    .parameter "cacheKey"
    .parameter "viewId"

    .prologue
    .line 144
    iput-object p1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    .line 145
    invoke-direct {p0, p2, p4}, Lcom/burstly/lib/network/request/SingleHostRequest;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 146
    iput-object p3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->mCacheKey:Ljava/lang/String;

    .line 147
    return-void
.end method


# virtual methods
.method protected makeRequest()Ljava/lang/String;
    .locals 3

    .prologue
    .line 151
    invoke-static {}, Lcom/burstly/lib/network/request/RequestManager;->isOnline()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->isAborted()Z

    move-result v0

    if-nez v0, :cond_0

    .line 152
    invoke-static {}, Ljava/lang/Thread;->currentThread()Ljava/lang/Thread;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->setWorkerThread(Ljava/lang/Thread;)V

    .line 153
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->this$0:Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->getUri()Ljava/lang/String;

    move-result-object v1

    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->mCacheKey:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->getVideoPath(Ljava/lang/String;Ljava/lang/String;)V

    .line 154
    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache;->access$000()Ljava/util/Set;

    move-result-object v0

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/video/VideoCache$VideoFetchTask;->getUri()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/Set;->remove(Ljava/lang/Object;)Z

    .line 156
    :cond_0
    const/4 v0, 0x0

    return-object v0
.end method
